Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Duende.​IdentityServer.​Stores.​DefaultGrantStore<​T>
Assembly: Duende.IdentityServer
Inheritance: object → DefaultGrantStore
Base class for persisting grants using the IPersistedGrantStore.
Fields and Constants
protected const
string
HexEncodingFormatSuffix
The suffix added to keys to indicate that hex encoding should be used.
Properties
protected
string
GrantType
The grant type being stored.
Logger
The logger.
protected
IPersistedGrantStore
Store
The PersistedGrantStore.
protected
IPersistentGrantSerializer
Serializer
The PersistentGrantSerializer;
HandleGenerationService
The HandleGenerationService.
Methods
protected
System.​Threading.​Tasks.​Task<​string>
CreateHandleAsync​()
Creates a handle.
protected
string
GetHashedKey​(string value)
Gets the hashed key.
value
The value.
protected
System.​Threading.​Tasks.​Task<​T>
GetItemAsync​(string key)
Gets the item.
key
The key.
protected
System.​Threading.​Tasks.​Task<​T>
GetItemByHashedKeyAsync​(string hashedKey)
Gets the item by the hashed key.
protected
System.​Threading.​Tasks.​Task<​System.​Collections.​Generic.​IEnumerable<​T>>
GetAllAsync​(PersistedGrantFilter filter)
Gets the items.
protected
System.​Threading.​Tasks.​Task<​string>
CreateItemAsync​(T item,
string clientId,
string subjectId,
string sessionId,
string description,
System.​DateTime created,
int lifetime)
Creates the item.
item
The item.
clientId
The client identifier.
subjectId
The subject identifier.
sessionId
The session identifier.
description
The description.
created
The created.
lifetime
The lifetime.
StoreItemAsync​(string key,
T item,
string clientId,
string subjectId,
string sessionId,
string description,
System.​DateTime created,
System.​DateTime? expiration,
System.​DateTime? consumedTime = null)
Stores the item.
key
The key.
item
The item.
clientId
The client identifier.
subjectId
The subject identifier.
sessionId
The session identifier.
description
The description.
created
The created time.
expiration
The expiration.
consumedTime
The consumed time.
StoreItemByHashedKeyAsync​(string hashedKey,
T item,
string clientId,
string subjectId,
string sessionId,
string description,
System.​DateTime created,
System.​DateTime? expiration,
System.​DateTime? consumedTime = null)
Stores the item.
hashedKey
The key.
item
The item.
clientId
The client identifier.
subjectId
The subject identifier.
sessionId
The session identifier.
description
The description.
created
The created time.
expiration
The expiration.
consumedTime
The consumed time.
RemoveItemAsync​(string key)
Removes the item.
key
The key.
RemoveItemByHashedKeyAsync​(string key)
Removes the item.
key
The key.
RemoveAllAsync​(string subjectId,
string clientId,
string sessionId = null)
Removes all items for a subject id / client id combination.
subjectId
The subject identifier.
clientId
The client identifier.
sessionId
The optional session identifier.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object